package AI;

import java.awt.Point;

public class Literal {
	private Point position;
	private LiteralType type;
	
	
	public Literal(Point position, LiteralType type) {
		this.position = position;
		this.type = type;
	}
	
	public Literal(int x, int y, LiteralType type) {
		this.position.x = x;
		this.position.y = y;
		this.type = type;
	}

	public Point getPos() {
		return position;
	}
	
	public LiteralType getType() {
		return type;
	}
	
	public boolean equals(Literal l) {
		if (l.getPos().equals(position) && l.getType().equals(type)) {
			return true;
		} else {
			return false;
		}
	}

	public void print() {
		System.out.print(type + "(" + (int)position.getX() + "," + (int)position.getY() + ")");
	}

	@Override
	public String toString() {
		return type + "(" + (int)position.getX() + "," + (int)position.getY() + ")" ;
	}
	
	
	
}
